package org.openwork.portlet.skillmanagement.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import org.openwork.portlet.skillmanagement.model.Skill;


/**
 * <a href="SkillPersistence.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * @author    Samuel Garcia Martinez
 * @see       SkillPersistenceImpl
 * @see       SkillUtil
 * @generated
 */
public interface SkillPersistence extends BasePersistence<Skill> {
    public void cacheResult(
        org.openwork.portlet.skillmanagement.model.Skill skill);

    public void cacheResult(
        java.util.List<org.openwork.portlet.skillmanagement.model.Skill> skills);

    public org.openwork.portlet.skillmanagement.model.Skill create(long id);

    public org.openwork.portlet.skillmanagement.model.Skill remove(long id)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchSkillException;

    public org.openwork.portlet.skillmanagement.model.Skill updateImpl(
        org.openwork.portlet.skillmanagement.model.Skill skill, boolean merge)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.Skill findByPrimaryKey(
        long id)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchSkillException;

    public org.openwork.portlet.skillmanagement.model.Skill fetchByPrimaryKey(
        long id) throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findByCategoryId(
        long categoryId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findByCategoryId(
        long categoryId, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findByCategoryId(
        long categoryId, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public org.openwork.portlet.skillmanagement.model.Skill findByCategoryId_First(
        long categoryId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchSkillException;

    public org.openwork.portlet.skillmanagement.model.Skill findByCategoryId_Last(
        long categoryId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchSkillException;

    public org.openwork.portlet.skillmanagement.model.Skill[] findByCategoryId_PrevAndNext(
        long id, long categoryId,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            org.openwork.portlet.skillmanagement.NoSuchSkillException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException;

    public java.util.List<org.openwork.portlet.skillmanagement.model.Skill> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeByCategoryId(long categoryId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countByCategoryId(long categoryId)
        throws com.liferay.portal.kernel.exception.SystemException;

    public int countAll()
        throws com.liferay.portal.kernel.exception.SystemException;
}
